package com.jiwei.system.pojo;

import javax.validation.constraints.Min;

public class Things {

    private String id;
    private String tid;
    private String name;
    @Min(value = 1)
    private int totalAmount;
    private int currentAmount;

    public Things(){

    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(int totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getCurrentAmount() {
        return currentAmount;
    }

    public void setCurrentAmount(int currentAmount) {
        this.currentAmount = currentAmount;
    }

    @Override
    public String toString() {
        return "Things{" +
                "id=" + id +
                ", tid='" + tid + '\'' +
                ", name='" + name + '\'' +
                ", totalAmount=" + totalAmount +
                ", currentAmount=" + currentAmount +
                '}';
    }
}
